Moved your attachment code into post