4 years in prison for preparing terror attack