Mesh creating functionality - bugged