Implemented scaling and code cleanup