Refined procedure

Changed some things around. Nothing major at all.